<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\BrokerController;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
    return $request->user();
});


Route::group(['prefix' => 'broker'],function(){
    //经纪人登录
    Route::any('sendTelMsg',[BrokerController::class,'sendTelMsg']);


});



//经济人api接口分组路由         频率限制
Route::group(['middleware'=>'throttle:100'],function (){
//    //发送验证码
//    Route::post('SendVerificationCode','LoginController@SendVerificationCode');
//    //用户绑定手机号或验证登录
//    Route::post('userBindPhoneLogin','LoginController@userBindPhoneLogin');
//
//    // JWT中间件token安全校验
//    Route::group(['middleware'=>['token']],function (){
//        //获取好友列表信息
//        //获取关注列表信息
//        Route::get('getFocusList','FocusController@getFocusList');
//        //发布信息
//        Route::post('addFocusList','FocusController@addFocusList');
//
//    });
});

